package com.demo.domain;

//联系人实体
public class Department {
    /*
     * CREATE TABLE `cst_linkman` (
      `lkm_id` bigint(32) NOT NULL AUTO_INCREMENT COMMENT '部门编号(主键)',
      `lkm_name` varchar(16) DEFAULT NULL COMMENT '部门姓名',
      `lkm_cust_id` bigint(32) NOT NULL COMMENT '客户id',
      PRIMARY KEY (`lkm_id`),
      KEY `FK_cst_linkman_lkm_cust_id` (`lkm_cust_id`),
      CONSTRAINT `FK_cst_linkman_lkm_cust_id` FOREIGN KEY (`lkm_cust_id`) REFERENCES `cst_customer` (`cust_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
    ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
     */
    private Long d_id;
    private String d_name;
    private Integer d_cust_id;


    // 所属客户
    private Customer customer;

    //----------------------------------------------
    //不与数据库中的列对应,只为了接收表单参数
    private Long cust_id;


    public Long getCust_id() {
        return cust_id;
    }

    public void setCust_id(Long cust_id) {
        this.cust_id = cust_id;
    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public Long getD_id() {
        return d_id;
    }

    public void setD_id(Long d_id) {
        this.d_id = d_id;
    }

    public String getD_name() {
        return d_name;
    }

    public void setD_name(String d_name) {
        this.d_name = d_name;
    }

    public Integer getD_cust_id() {
        return d_cust_id;
    }

    public void setD_cust_id(Integer d_cust_id) {
        this.d_cust_id = d_cust_id;
    }
}
